package com.abc.dto.response;

import lombok.Data;

import java.util.List;

/**
 * Siliconflow Rerank API 响应结果
 */
@Data
public class RerankResponseDto {

    private String id;
    
    private List<RerankResult> results;
    
    private RerankMeta meta;

    @Data
    public static class RerankResult {
        private RerankDocument document;
        private Integer index;
        private Double relevanceScore;
    }

    @Data
    public static class RerankDocument {
        private String text;
    }

    @Data
    public static class RerankMeta {
        private BilledUnits billedUnits;
        private Tokens tokens;
    }

    @Data
    public static class BilledUnits {
        private Integer inputTokens;
        private Integer outputTokens;
        private Integer searchUnits;
        private Integer classifications;
    }

    @Data
    public static class Tokens {
        private Integer inputTokens;
        private Integer outputTokens;
    }
}
